home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 23 / AACD 23.iso / AACD / Programming / tek / kn / linux / exec.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-05-12  |  699 b   |  49 lines

  1.  
  2. #ifndef _TEK_KERNEL_LINUX_EXEC_H
  3. #define _TEK_KERNEL_LINUX_EXEC_H
  4.  
  5. #include <stdlib.h>
  6. #include <unistd.h>
  7. #include <pthread.h>
  8. #include <signal.h>
  9. #include <sys/time.h>
  10. #include <errno.h>
  11.  
  12.  
  13. struct posixthread
  14. {
  15.     pthread_t pthread;    
  16.     void *data;
  17.     void (*function)(void *);
  18.     pthread_key_t tsdkey;
  19.     
  20.     pthread_mutex_t proclock;        /* process-wide sock errno lock (basecontext only) */
  21. };
  22.  
  23.  
  24. struct posixevent
  25. {
  26.     pthread_mutex_t mutex;
  27.     pthread_cond_t cond;
  28.     int status;
  29. };
  30.  
  31. struct posixtimer
  32. {
  33.     pthread_mutex_t mutex;
  34.     pthread_cond_t cond;
  35.     struct timeval timeval;
  36. };
  37.  
  38.  
  39.  
  40. /* 
  41. **    posix special:
  42. */
  43.  
  44. extern TVOID kn_lockbasecontext(TKNOB *thread);
  45. extern TVOID kn_unlockbasecontext(TKNOB *thread);
  46.  
  47.  
  48. #endif
  49.